@import '../../../../../scss/styles';

@layer payload-default {
  .table-cell-action-button-container {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
  }

  .table-cell-action-button-container.table-cell-action-button-container--active {
    pointer-events: auto;
    opacity: 1;
  }
  .table-cell-action-button-container.table-cell-action-button-container--inactive {
    pointer-events: none;
    opacity: 0;
  }

  .table-cell-action-button {
    //background-color: var(--theme-elevation-200);
    border: 0;
    padding: 2px;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: $style-radius-m;
    color: var(--theme-elevation-800);
    display: inline-block;
    cursor: pointer;

    &:hover {
      background-color: var(--theme-elevation-300);
    }
  }

  html[data-theme='light'] {
    .table-action-menu-dropdown {
      box-shadow:
        0px 1px 2px 1px rgba(0, 0, 0, 0.05),
        0px 4px 8px 0px rgba(0, 0, 0, 0.1);
    }
  }

  .table-action-menu-dropdown {
    z-index: 100;
    display: block;
    position: fixed;
    background: var(--theme-input-bg);
    min-width: 160px;
    border-radius: $style-radius-m;
    min-height: 40px;
    overflow-y: auto;
    box-shadow:
      0px 1px 2px 1px rgba(0, 0, 0, 0.1),
      0px 4px 16px 0px rgba(0, 0, 0, 0.2),
      0px -4px 8px 0px rgba(0, 0, 0, 0.1);

    hr {
      border: none;
      height: 1px;
      background-color: var(--theme-elevation-200);
    }

    .item {
      padding: 8px;
      color: var(--theme-elevation-900);
      background: var(--theme-input-bg);
      cursor: pointer;
      font-size: 13px;
      font-family: var(--font-body);
      display: flex;
      align-content: center;
      flex-direction: row;
      flex-shrink: 0;
      justify-content: space-between;
      border: 0;
      height: 30px;
      width: 100%;

      &:hover {
        background: var(--theme-elevation-100);
      }
    }
  }
}
